<?php

use Carbon\Carbon;
use Illuminate\Database\Seeder;

/**
 * 用户数据表填充器
 *
 * Date: 20/03/2018
 * @author George
 */
class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
    	$users = [
    		[
    			'id' => 1,
    			'name' => 'George',
    			'mobile' => '18616882860',
    			'password' => bcrypt('chopin'),
    			'birthday' => '1994-12-02',
    			'gender' => 1,
    			'identification' => '342422199412023294',
    			'company_id' => 1,
    			'project_id' => 1,
    			'position_id' => 1,
    			'avatar' => null,
    			'manager' => 1,
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now()
			],[
    			'id' => 2,
    			'name' => 'Kevin',
    			'mobile' => '18616882861',
    			'password' => bcrypt('chopin'),
    			'birthday' => '1994-12-02',
    			'gender' => 1,
    			'identification' => '342422199412023295',
    			'company_id' => 2,
    			'project_id' => 1,
    			'position_id' => 2,
    			'avatar' => null,
    			'manager' => 1,
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now()
			],[
    			'id' => 3,
    			'name' => 'Eric',
    			'mobile' => '18616882862',
    			'password' => bcrypt('chopin'),
    			'birthday' => '1994-12-02',
    			'gender' => 1,
    			'identification' => '342422199412023296',
    			'company_id' => 3,
    			'project_id' => 3,
    			'position_id' => 3,
    			'avatar' => null,
    			'manager' => 1,
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now()
			],[
    			'id' => 4,
    			'name' => 'Emma',
    			'mobile' => '18616882863',
    			'password' => bcrypt('chopin'),
    			'birthday' => '1994-12-02',
    			'gender' => 1,
    			'identification' => '342422199412023297',
    			'company_id' => 4,
    			'project_id' => 4,
    			'position_id' => 3,
    			'avatar' => null,
    			'manager' => 0,
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now()
			],[
    			'id' => 5,
    			'name' => 'Echo',
    			'mobile' => '18616882864',
    			'password' => bcrypt('chopin'),
    			'birthday' => '1994-12-02',
    			'gender' => 1,
    			'identification' => '342422199412023298',
    			'company_id' => 5,
    			'project_id' => 5,
    			'position_id' => 3,
    			'avatar' => null,
    			'manager' => 0,
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now()
			],[
    			'id' => 6,
    			'name' => 'Bob',
    			'mobile' => '18616882865',
    			'password' => bcrypt('chopin'),
    			'birthday' => '1994-12-02',
    			'gender' => 1,
    			'identification' => '342422199412023299',
    			'company_id' => 5,
    			'project_id' => 5,
    			'position_id' => 3,
    			'avatar' => null,
    			'manager' => 0,
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now()
			],
		];

    	DB::table('users')->insert($users);
    }
}
